/*
 * @Author: chengsl
 * @Date: 2023-01-10 15:01:35
 * @LastEditors: chengsl
 * @LastEditTime: 2023-01-10 15:01:37
 * @Description: 主题河流图 widgetThemeRiver
 */
export default {
  tooltip: {
    trigger: 'axis',
    show: true,
    axisPointer: {
      type: 'line',
      lineStyle: { color: 'rgba(0,0,0,0.2)', width: 1, type: 'solid' },
      textStyle: {}
    }
  },
  legend: {
    data: ['新增', '死亡', '无症状', '入境'],
    show: true,
    left: 'center',
    right: 'center',
    top: 'top',
    bottom: 'top',
    orient: 'horizontal',
    textStyle: { color: '#fff', fontSize: 12 },
    itemWidth: 12
  },
  singleAxis: {
    top: 50,
    bottom: 50,
    axisTick: {},
    axisLabel: {},
    type: 'time',
    axisPointer: { animation: true, label: { show: true } },
    splitLine: { show: false, lineStyle: { type: 'dashed', opacity: 0.2 } }
  },
  series: [
    {
      type: 'themeRiver',
      emphasis: {
        itemStyle: { shadowBlur: 20, shadowColor: 'rgba(0, 0, 0, 0.8)' }
      },
      data: [
        ['2022-11-23', 6, '新增'],
        ['2022-11-24', 13, '新增'],
        ['2022-11-25', 27, '新增'],
        ['2022-11-26', 41, '新增'],
        ['2022-11-27', 66, '新增'],
        ['2022-11-28', 69, '新增'],
        ['2022-11-23', 3, '死亡'],
        ['2022-11-24', 1, '死亡'],
        ['2022-11-25', 5, '死亡'],
        ['2022-11-26', 1, '死亡'],
        ['2022-11-27', 2, '死亡'],
        ['2022-11-28', 3, '死亡'],
        ['2022-11-23', 9, '无症状'],
        ['2022-11-24', 21, '无症状'],
        ['2022-11-25', 32, '无症状'],
        ['2022-11-26', 43, '无症状'],
        ['2022-11-27', 65, '无症状'],
        ['2022-11-28', 68, '无症状'],
        ['2022-11-23', 3, '入境'],
        ['2022-11-24', 8, '入境'],
        ['2022-11-25', 22, '入境'],
        ['2022-11-26', 32, '入境'],
        ['2022-11-27', 64, '入境'],
        ['2022-11-28', 65, '入境']
      ],
      color: [
        '#0060FF',
        '#3BD6FF',
        '#948BEA',
        '#F78D94',
        '#FF7A45',
        '#FCBB61',
        '#36CFC0'
      ]
    }
  ]
}
